package file;

import java.io.File;

/**
 * @Classname: DeleteFileDemo
 * @Author: bromide
 * @CreateTime: 2022/3/25--14:08
 * @Version: V1.0
 * @Desciption: delete 删除
 */
public class DeleteFileDemo {
    public static void main(String[] args) {
        File file = new File("./test.txt");
        if (file.exists()) {
            file.delete();
            System.out.println("该文件已删除！");
        } else {
            System.out.println("该文件不存在！");
        }
    }
}
